Practical Linux with Raspberry Pi OS by Ashwin Pajankar
Author:Ashwin Pajankar [Pajankar, Ashwin]
Language: eng
Format: epub
ISBN: 9781484265109
Publisher: Apress
Control Operators
Let us see a few control operators. Unix and derivatives have many control operators. Let us learn them one by one.
Run the following commands in sequence:ls
echo $?
The last command returns 0. This is because $? stores the exit code of execution of the last command. If it is a success, it stores 0 and otherwise other code.
We can separate two commands with a semicolon (;) as follows:echo test1 ; echo test2
Let us see the usage of the operator &. When a line ends with it, the shell does not wait for the command to finish execution. We get the shell prompt back.
Open the lxterminal program in GUI or using VNC. Then run the command leafpad to open the text editor. You will notice that as long as the editor is running, the command prompt is locked and not running typed-in commands. Once we close the editor, it will run those commands one by one (they are actually stored in a buffer). If we run the following commandleafpad &
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7739)
Filmora Efficient Editing by Alexander Zacharias(5444)
The Infinite Retina by Robert Scoble Irena Cronin(4889)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3903)
Learn Wireshark - Fundamentals of Wireshark. by Lisa Bock(3781)
Edit Like a Pro with iMovie by Regit(3236)
Linux Administration Best Practices by Scott Alan Miller(2841)
Linux Command Line and Shell Scripting Techniques by Vedran Dakic & Jasmin Redzepagic(2817)
MCSA Windows Server 2016 Study Guide: Exam 70-740 by William Panek(2506)
Docker on Windows by Stoneman Elton(2305)
Kali Linux - An Ethical Hacker's Cookbook: End-to-end penetration testing solutions by Sharma Himanshu(2294)
Mastering PowerShell Scripting - Fourth Edition by Chris Dent(2214)
Hands-On AWS Penetration Testing with Kali Linux by Karl Gilbert(2093)
Creative Projects for Rust Programmers by Carlo Milanesi(2041)
Hands-On Linux for Architects by Denis Salamanca(2027)
Computers For Seniors For Dummies by Nancy C. Muir(1982)
Programming in C (4th Edition) (Developer's Library) by Stephen G. Kochan(1972)
The Old New Thing by Raymond Chen(1926)
Linux Kernel Debugging by Kaiwan N Billimoria(1751)
